package com.pn.taikao.service;

import com.pn.taikao.entity.PaperQuestion;

import java.util.List;

public interface PaperQuestionService {
    void addQuestionToPaper(Long paperId, Long questionId, Double score);

    void removeQuestionFromPaper(Long paperId, Long questionId);

    void clearPaperQuestions(Long paperId);

    void setPaperQuestions(Long paperId, List<Long> questionIds, List<Double> scores);

    List<PaperQuestion> getByPaperId(Long paperId);

    PaperQuestion getByPaperIdAndQuestionId(Long paperId, Long questionId);

    List<Long> getQuestionIdsByPaperId(Long paperId);

    long countByPaperId(Long paperId);
}


